package com.chenchen.code.guava.eventbus.monitor;

import java.nio.file.Path;
import java.nio.file.WatchEvent;

/**
* @Description: 
* @author chenchen
* @date 2019/5/13 15:45
*/
public class FileChangeEvent
{

    private final Path path;

    private final WatchEvent.Kind<?> kind;

    public FileChangeEvent(Path path, WatchEvent.Kind<?> kind)
    {
        this.path = path;
        this.kind = kind;
    }

    public Path getPath()
    {
        return path;
    }

    public WatchEvent.Kind<?> getKind()
    {
        return kind;
    }
}
